package com.example.retrofit.api;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author fans
 * 集成nacos：serviceId = "nacos-user-point", fallback = UserFallbackService.class
 */
@RetrofitClient(baseUrl = "https://www.oschina.net")
public interface OsChinaApi {

    /*@GET("/news/project")
    String getProjects();*/

    @GET("/news/project")
    String getProjects(@Query("type") String type, @Query("widget") String widget);
}
